<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        {:build_heading(null,FALSE)}
    </div>


    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a  class="btn btn-info btn-disabled disabled btn-selected {:$auth->check('ykjp/purchase/ret_review/approval')?'':'hide'}" href="javascript:;"><i class="fa fa-leaf"></i> {:__('Approved yes')}</a>
                        <!--   <a class="btn btn-danger btn-disabled disabled btn-selected-no {:$auth->check('ykjp/purchase/ret_review/approval')?'':'hide'}" href="javascript:;"><i class="fa fa-exclamation-triangle"></i> {:__('Approved no')}</a> -->
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="false" 
                           data-operate-del="false" 
                           data-operate-addtabs="{:$auth->check('ykjp/purchase/storage/edit')}" 
                           data-show-export="false" data-show-toggle="false" data-show-columns="false"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="customformtpl" type="text/html">
    <form action="" class="form-commonsearch">
        <div style="border-radius:2px;margin-bottom:10px;padding:15px 20px;">
            <div class="row">
                <div class="col-xs-12 col-sm-6 col-md-3 form-group">
                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Code')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input class="operate" type="hidden" data-name="code" value="="/>
                        <input class="form-control operate"  type="text" name="code" placeholder="请输入查找的编号" value=""/>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-md-3 form-group">

                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Supplier')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input class="operate" type="hidden" data-name="supplier.name" value="="/>
                        <input class="form-control" type="text" name="supplier.name" placeholder="请输入供应商名称" value=""/>
                    </div>

                </div>
                <div class="col-xs-12 col-sm-6 col-md-3 form-group {:$auth->check('ykjp/purchase/approval/getsalesman')?'':'hide'}">

                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Reviewer')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input class="operate" type="hidden" data-name="reviewer_id" value="="/>
                        <input class="form-control selectpage" data-source="ykjp/purchase/approval/getsalesman" data-primary-key="id" data-field="nickname" type="text" name="reviewer_id" placeholder="请选择审核人" value=""/>
                    </div>

                </div>
                <div class="col-xs-12 col-sm-6 col-md-3 form-group">

                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Status')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input class="operate" type="hidden" data-name="status" value="="/>
                        <select class="control-label selectpicker" name="status">
                            <option></option>
                            {foreach name="statusList" item="vo" key="k" }
                            <option value="{$k}">{$vo}</option>
                            {/foreach}
                        </select>
                    </div>

                </div>

                <div class="col-xs-12 col-sm-6 col-md-3 form-group">
                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Billing_time')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input type="hidden" class="operate" data-name="billing_time" value="RANGE"/>
                        <input type="text" class="form-control datetimerange" name="billing_time" value=""/>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-md-3 form-group">
                    <div class="row">
                        <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px"></label>
                        <div class="col-xs-3">
                            <input type="submit" class="btn btn-success btn-block" value="提交"/>
                        </div>
                        <div class="col-xs-3">
                            <input type="reset" class="btn btn-primary btn-block" value="重置"/>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </form>
</script>
